{{ define "main" }}
<div class="blog">
  <ul class="post-list">
    {{ $posts := where .Site.RegularPages "Type" "in" (slice "post") }}
    {{ range $posts }}
    <li>
      <span class="post-meta">{{ .Date | time.Format $.Site.Params.time_format_default }}</span>
      <h2>
      <a class="post-link" href="{{ .RelPermalink }}" hreflang="{{ .Language.Params.languageCode }}">{{ .Title }}</a>
      </h2>
      {{ with .Params.excerpt }}
      {{ . | markdownify }}
      {{ else }}
      {{ .Summary }}
      {{ end }}
      <p><a href="{{ .RelPermalink }}" hreflang="{{ .Language.Params.languageCode }}">{{ i18n "read_more" }}</a></p>
    </li>
    {{ end }}
  </ul>
  {{ with .Site.Home.OutputFormats.Get "RSS" -}}
  <p class="rss-subscribe">
    <i class="fas fa-rss-square" aria-hidden="true"></i>
    {{ i18n "subscribe_rss" . | safeHTML }}
  </p>
  {{ end  }}
</div>
{{ end }}
